# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libsailfishkeyprovider
pkgver=1.0.7
pkgrel=1
pkgdesc="Provides a class which can provide decoded keys to client applications"
url="https://github.com/sailfishos/libsailfishkeyprovider"
arch="all"
license="LGPL-2.1-only"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/libsailfishkeyprovider/archive/$pkgver/libsailfishkeyprovider-$pkgver.tar.gz"

build() {
	qmake-qt5
	make -j1 # Race issues when linking
}

check() {
	make check
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="
d7edd6b8a208c089c83c5da53ab36650b3f27e1b1d598d26f42d9351a29d862cf2df28a2caf2025a57f4131952e9170345a76048b69b70935121e26dcb3c4965  libsailfishkeyprovider-1.0.7.tar.gz
"
